/*
 * OrdernadorTelemercadeo.java
 *
 * Created on August 14, 2007, 12:50 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.computec.manualesweb.dto;



/**
 *
 * @author root
 */
public class AplicacionesComparator implements java.util.Comparator{
    
public int compare(Object obj1, Object obj2){
    AplicacionesDto app1 = (AplicacionesDto) obj1;
    AplicacionesDto app2 = (AplicacionesDto) obj2;
    
    int id1=Integer.parseInt(app1.getIdApp());
    int id2=Integer.parseInt(app2.getIdApp());
    
    if (app1.getAplicacion().compareToIgnoreCase(app2.getAplicacion())>0){
        return 1;
    }
    if (app1.getAplicacion().compareToIgnoreCase(app2.getAplicacion())==0){
        return 0;
    }
    return -1;

}
    
}
